<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style type="text/css">
			body{
				border: 20px solid deeppink;
				position: relative;
				padding: 40px;
				width: 200vw;
				height: 200vh;
			}
			#d1{
				width: 200px;
				height: 200px;
				color: skyblue;
				border: 40px solid purple;
				padding: 20px;
				margin: 100px;
			}
		</style>
	</head>
	<body>
		<div id="d1">
			
		</div>
		
		<script type="text/javascript">
			var d1 = document.querySelector("#d1")
			console.log([d1])

			/* scrollWidth和scrollHeight,盒子的width/height+padding
			pageXOffset和pageYoffset，浏览器滚动遮挡的x轴和y轴
			scrollTo(0,0)，绝对位置
			scrollBy(0,0)，相对位置 */
		</script>
	</body>
</html>
